import request from '@/utils/request'

export function createTest (form: any) {
  return request({
    url: '/test/create',
    method: 'post',
    data: form
  })
}

export function showTest (testId: any) {
  return request({
    url: '/test/' + testId,
    method: 'get'
  })
}

export function submitTest (form: any) {
  return request({
    url: '/test/submit',
    method: 'post',
    data: form
  })
}
